<?php if (!defined('THINK_PATH')) exit(); /*a:2:{s:44:"template/wap\default_new\Login\register.html";i:1531469484;s:38:"template/wap\default_new\urlModel.html";i:1510824802;}*/ ?>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title><?php echo lang('member_register'); if($seoconfig['seo_title'] != ''): ?>-<?php echo $seoconfig['seo_title']; endif; ?></title>
<meta name="keywords" content="<?php echo $seoconfig['seo_meta']; ?>" />
<meta name="description" content="<?php echo $seoconfig['seo_desc']; ?>"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
<link rel="shortcut  icon" type="image/x-icon" href="__TEMP__/<?php echo $style; ?>/public/images/favicon.ico" media="screen"/>
<link rel="stylesheet" href="__TEMP__/<?php echo $style; ?>/public/css/login_base.css">
<link rel="stylesheet" href="__TEMP__/<?php echo $style; ?>/public/css/login_wap.css">
<link rel="stylesheet" type="text/css" href="__TEMP__/<?php echo $style; ?>/public/css/font-awesome.css">
<link rel="stylesheet" type="text/css" href="__TEMP__/<?php echo $style; ?>/public/css/showbox.css">
<style>
.content{
	max-width: 648px;
	margin:auto;
}
.footer {
    margin: 100px 0 0 0;
    padding: 0;
    min-height: 1px;
    text-align: center;
    line-height: 16px;
    background-color: #fff;
}
.ft-copyright {
	padding: 50px 0 20px;
	margin: 0 15px;
	font-size: 12px;
	background: url("__TEMP__/<?php echo $style; ?>/public/images/logo_copy.png") no-repeat center 15px;
	background-size: 110px 30px;
}
.ft-copyright a {
    padding-top: 45px;
    color: #ccc;
}
#sendOutCode{
	-webkit-appearance: none;
	border: 1px solid #FFC105;
    padding: 4px 7px;
    color: #FFC105;
    height: 25px;
    font-weight: bold;
    float: right;
    margin: 10px 0 0 0;
    border-radius: 4px;
    border-top-left-radius: 12px;
	border-top-right-radius: 12px;
	border-bottom-right-radius:12px; 
	border-bottom-left-radius:12px; 
}
.reg-box .reg-cont label input {
	font-size:12px
}
.nk_reg_logo .back-home{
	position: absolute;
	z-index: 80;
	width: 30px;
	height: 25px;
	line-height: 25px;
	background: #fff;
	top: 15px;
	padding-right: 8px;
	border-top-right-radius: 18px;
	border-bottom-right-radius: 18px;
	text-align: center;
}
.nk_reg_logo .back-home span.data-home{
	height: 20px;
	width: 20px;
	display: block;
	background:url("__TEMP__/<?php echo $style; ?>/public/images/home_check.png") center no-repeat;
	background-size: 20px 20px;
	margin: 2px 0 0 8px;
}
</style>
<script src="__TEMP__/<?php echo $style; ?>/public/js/jquery.js"></script>
<script src="__TEMP__/<?php echo $style; ?>/public/js/showBox.js"></script>
<script src="__STATIC__/js/load_bottom.js" type="text/javascript"></script>
<script type="text/javascript">
var APPMAIN='APP_MAIN';
var STATIC = "__STATIC__";
	$(function() {
		$('.nk_cell').click(function() {
			if (!$(this).is('.active')) {
				$('.nk_cell').removeClass('active');
				$(this).addClass('active');
				var oDiv1 = $('#nk_text1');
				var oDiv2 = $('#nk_text2');
				if (oDiv1.css('display') == "block") {
					oDiv1.hide();
					oDiv2.show();
				} else {
					oDiv2.hide();
					oDiv1.show();
				}
			}
		});
	})
	
	var is_member_sub = false;
	function register_member(){
		var username = $("#username").val();
		var password = $("#password").val();
		var cfpassword = $("#cfpassword").val();
		var reg = /^.{6,}$/;
		var register_captcha = $("#register-captcha").val();
		
		if(username == ''){
			showBox("<?php echo lang('account_cannot_be_empty'); ?>", "error");
			return false;
		}
		//账号验证
		var is_username_true = verifyUsername(username);
		if(is_username_true > 0){
			return false;
		}
		if(password == ''){
			showBox("<?php echo lang('password_cannot_empty'); ?>", "error");
			return false;
		}

		//密码验证
		var is_password_true = verifyPassword(password);
		if(is_password_true > 0){
			return false;
		}
		
		if(cfpassword == ''){
			showBox("<?php echo lang('confirm_password_can_not_be_empty'); ?>", "error");
			return false;
		}
		if(password != cfpassword){
			showBox("<?php echo lang('two_password_input_is_inconsistent'); ?>", "error");
			$("#cfpassword").focus();
			return false;
		}

		if(register_captcha == ''){
			showBox("<?php echo lang('verification_code_cannot_be_null'); ?>", "error");
			return false;
		}
		if(is_member_sub) return;
		is_member_sub = true;
		$.ajax({
			type : "post",
			url : "<?php echo __URL('APP_MAIN/login/register'); ?>",
			data : {
				"username" : username,
				"password" : password,
				"captcha" : register_captcha 
			},
			success : function(data) {
				if(data["code"] > 0 ){
					showBox(data["message"], "success", "<?php echo __URL('APP_MAIN/member/index'); ?>");
				}else{
					is_member_sub = false;
					showBox(data["message"], "error");
				}
			}
		});
	}
	
	function check_mobile_is_has(){
		var mobile = $("#mobile").val();
		$.ajax({
			type: "post",
			url: "<?php echo __URL('APP_MAIN/login/checkMobileIsHas'); ?>",
			data: {"mobile":mobile},
			async: false,
			success: function(data){
				if(data > 0){
					$("#mobile_is_has").val(0);
					return false;
				}else{
					$("#mobile_is_has").val(1);
					return false;
				}
			} 
		});
	}
		
	var is_mobile_sub = false;
	function register_mobile(){
		var mobile = $("#mobile").val();
		var vertification = $("#captcha").val();
		var password_mobile = $("#password_mobile").val();
		var cfpassword_mobile = $("#cfpassword_mobile").val();
		var verify_code = $("#verify_code").val();
		var reg = /^.{6,}$/;
		var mobile_is_has = $("#mobile_is_has").val();
		
		if(mobile == ''){
			showBox("<?php echo lang('phone_number_cannot_empty'); ?>", "error");
			return false;
		} else if(!(/^1[34578]\d{9}$/.test(mobile))){ 
			showBox("<?php echo lang('mobile_phone_number_is_wrong'); ?>", "error");  
	        return false; 
	    } else if(mobile_is_has == 0){
	    	showBox("<?php echo lang('mobile_phone_is_registered'); ?>", "error");
			return false;
	    } 
		if(vertification == ''){
			showBox("<?php echo lang('verification_code_cannot_be_null'); ?>", "error");
			return false;
		}
		var is_password_true = verifyPassword(password_mobile);
		if(is_password_true > 0){
			return false;
		}
		if(password_mobile != cfpassword_mobile){
			showBox("<?php echo lang('two_password_input_is_inconsistent'); ?>", "error");
			$("#cfpassword_mobile").focus();
			return false;
		}
		if(verify_code == ''){
			showBox("<?php echo lang('mobile_phone_dynamic_password_can_not_be_empty'); ?>", "error");
			return false;
		}
		if(is_mobile_sub) return;
		is_mobile_sub = true;

		<?php if($loginConfig['mobile_config']['is_use'] == 1): ?>
		$.ajax({
 			type:"post",
 		    url:"<?php echo __URL('APP_MAIN/Login/register_check_code'); ?>",
 		    data:{'send_param':verify_code},
 		    async : true,
 		    dataType:'json',
 		    success:function(data){
 		    	 if (data['code'] == 0) { 
	 		   		//密码验证	
 					$.ajax({
 						type : "post",
 						url : "<?php echo __URL('APP_MAIN/login/register'); ?>",
 						async : true,
 						data : {
 							"mobile" : mobile,
 							"password" : password_mobile,
 							"captcha" : vertification
 						},
 						success : function(data) {
 							if(data["code"] > 0 ){
 							 	showBox(data["message"], "success", "<?php echo __URL('APP_MAIN/member/index'); ?>");
 							}else{
 								showBox(data["message"], "error");
 								is_mobile_sub = false;
 							} 
 						}
 					});
 				}else {
 					is_mobile_sub = false;
 					showBox("<?php echo lang('mobile_phone_dynamic_code_error'); ?>", "error");
 					return false;
 				}
 		    }
 		}); 
		<?php else: ?>
			$.ajax({
				type : "post",
				url : "<?php echo __URL('APP_MAIN/login/register'); ?>",
				async : true,
				data : {
					"mobile" : mobile,
					"password" : password_mobile,
					"captcha" : vertification
				},
				success : function(data) {
					if(data["code"] > 0 ){
						showBox(data["message"], "success", "<?php echo __URL('APP_MAIN/member/index'); ?>");
					}else{
						is_mobile_sub = false;
						showBox(data["message"], "error");
					} 
				}
			});
		<?php endif; ?>

	}
	
	//短信验证码
$(document).ready(function(){
	$("#sendOutCode").click(function (){
		var mobile = $("#mobile").val();
		var vertification = $("#captcha").val();
		//验证手机号格式是否正确
		if(mobile.search(/^1[34578]\d{9}$/) == -1){
 			$("#mobile").trigger("focus");
 			showBox("<?php echo lang('mobile_phone_number_is_wrong'); ?>", "error");  
			return false;
		}
		//验证手机号是否已经注册
		$.ajax({
			type: "post",
			url: "<?php echo __URL('APP_MAIN/login/mobile'); ?>",
			data: {"mobile":mobile},
			async: false,
			success: function(data){
				if(data){
					showBox("<?php echo lang('mobile_phone_is_registered'); ?>", "error");  
					return false;
				}else{
			 		//判断输入的验证码是否正确 
					$.ajax({
						type: "post",
						url: "<?php echo __URL('APP_MAIN/Login/sendSmsRegisterCode'); ?>",
						data: {"mobile":mobile,"vertification":vertification},
						success: function(data){
							if(data['code']==0){
								time();
							}else{
								showBox(data["message"], "error");
								$(".verifyimg").attr("src",'<?php echo __URL('SHOP_MAIN/captcha'); ?>');
								return false;
							}
						}
					});
				}
			} 
		});

	});
	var wait=120; 
	function time() { 
        if (wait == 0) {
        	$("#sendOutCode").removeAttr("disabled");  
        	$("#sendOutCode").val("<?php echo lang('get_dynamic_code'); ?>"); 
            wait = 120; 
        } else { 
        	$("#sendOutCode").attr("disabled", 'disabled');
        	$("#sendOutCode").val(wait+"s"); 
            wait--; 
            setTimeout(function() { 
                time() 
            }, 
            1000)
        }
	}		
		
})	
	 
	
	
	


//验证用户名
function verifyUsername(username){
	var is_true =0;
	if(/.*[\u4e00-\u9fa5]+.*$/.test(username) ){
		is_true = 1;
		showBox("<?php echo lang('user_name_cannot_contain_chinese_characters'); ?>", "error");
		return is_true;
	}
	if(/\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*/.test(username) ){
		is_true = 1;
		showBox("<?php echo lang('user_name_canno_be_mailbox'); ?>", "error");
		return is_true;
	}
	if(/^1(3|4|5|7|8)\d{9}$/.test(username) ){
		is_true = 1;
		showBox("<?php echo lang('user_name_canno_be_phone'); ?>", "error");
		return is_true;
	}
	
	var username_verify = "<?php echo $reg_config['name_keyword']; ?>";
	var usernme_verify_array = new Array();
	if($.trim(username_verify) != "" && username_verify != undefined){
		usernme_verify_array  = username_verify.split(",");
	}
	usernme_verify_array.push(",");
	$.each(usernme_verify_array,function(k,v){
		if($.trim(v) != ""){
			if(username.indexOf(v) >= 0){
				is_true = 1;
				showBox("<?php echo lang('username_cannot_includ'); ?>"+v+"<?php echo lang('such_characters'); ?>", "error");
				return false;
			}
		}
	});
	return is_true;
}
//验证密码
function verifyPassword(password){
	var is_true = 0;
	var min_length_str = "<?php echo $reg_config['pwd_len']; ?>";
	if($.trim(min_length_str) != "" ){
		var min_length = parseInt(min_length_str);	
	}else{
		var min_length = 5;
	}
	if($.trim(password) == ""){
		is_true = 1;
		showBox("<?php echo lang('password_cannot_empty'); ?>", "error");						
		return is_true;
	}
	if(min_length  > 0){
		if(password.length < min_length){
			is_true = 1;
			showBox("<?php echo lang('minimum_password_length'); ?>"+min_length, "error");						
			return is_true;
		}
		
	}
	if(/.*[\u4e00-\u9fa5]+.*$/.test(password) ){
		is_true = 1;
		showBox("<?php echo lang('password_cannot_includ_chinese_characters'); ?>", "error");
		return is_true;
	}
	var regex_str = "<?php echo $reg_config['pwd_complexity']; ?>";
	if($.trim(regex_str) != "" && regex_str != undefined){
		//验证是否包含数字
		if(regex_str.indexOf("number") >= 0){
			var number_test =  /[0-9]/;
			if(!number_test.test(password)){
				is_true = 1;
				showBox("<?php echo lang('password_must_contain_numbers'); ?>", "error");									
				return is_true;
			}
		}
		//验证是否包含小写字母
		if(regex_str.indexOf("letter") >= 0){
			var letter_test =  /[a-z]/;
			if(!letter_test.test(password)){
				is_true = 1;
				showBox("<?php echo lang('password_must_have_lowercase_letters'); ?>", "error");								
				return is_true;
			}
		}
		//验证是否包含大写字母
		if(regex_str.indexOf("upper_case") >= 0){
			var upper_case_test =  /[A-Z]/;
			if(!upper_case_test.test(password)){
				is_true = 1;
				showBox("<?php echo lang('password_must_have_uppercase_letters'); ?>", "error");					
				return is_true;
			}
		}
		//验证是否包含特殊字符
		if(regex_str.indexOf("symbol") >= 0){
			var symbol_test =  /[^A-Za-z0-9]/;
			if(!symbol_test.test(password)){
				is_true = 1;
				showBox("<?php echo lang('password_must_contain_symbols'); ?>", "error");						
				return is_true;
			}
		} 
	}
	return is_true;
}

</script>
</head>
<body>
<div class="content">
<input type="hidden" id="niushop_rewrite_model" value="<?php echo rewrite_model(); ?>">
<input type="hidden" id="niushop_url_model" value="<?php echo url_model(); ?>">
<script>
function __URL(url)
{
    url = url.replace('SHOP_MAIN', '');
    url = url.replace('APP_MAIN', 'wap');
    if(url == ''|| url == null){
        return 'SHOP_MAIN';
    }else{
        var str=url.substring(0, 1);
        if(str=='/' || str=="\\"){
            url=url.substring(1, url.length);
        }
        if($("#niushop_rewrite_model").val()==1 || $("#niushop_rewrite_model").val()==true){
            return 'SHOP_MAIN/'+url;
        }
        var action_array = url.split('?');
        //检测是否是pathinfo模式
        url_model = $("#niushop_url_model").val();
        if(url_model==1 || url_model==true)
        {
            var base_url = 'SHOP_MAIN/'+action_array[0];
            var tag = '?';
        }else{
            var base_url = 'SHOP_MAIN?s=/'+ action_array[0];
            var tag = '&';
        }
        if(action_array[1] != '' && action_array[1] != null){
            return base_url + tag + action_array[1];
        }else{
        	 return base_url;
        }
    }
}
/**
 * 处理图片路径
 */
function __IMG(img_path){
	var path = "";
	if(img_path != undefined && img_path != ""){
		if(img_path.indexOf("http://") == -1 && img_path.indexOf("https://") == -1){
			path = "__UPLOAD__\/"+img_path;
		}else{
			path = img_path;
		}
	}
	return path;
}
</script>
	<!-- showBox弹出框 -->
	<div class="motify" style="display: none;">
		<i class="show_type warning"></i>
		<div class="motify-inner"><?php echo lang('pop_up_prompt'); ?></div>
	</div>

	<div class="nk_reg_logo">
		<img src="<?php echo __IMG($register_adv['adv_image']); ?>" />
		<a href="<?php echo __URL('APP_MAIN'); ?>">
			<div class="back-home"><span class="data-home"></span></div>
		</a>
	</div>
	<!-- <a href="APP_MAIN/login"><div class="banner_login">
		<span >登录</span>
	</div></a>
	<a href="APP_MAIN/login/register"><div class="banner_register" >
		<span >注册</span>
	</div></a> -->
	<div class="nk_top">
	<?php if((strpos($reg_config['register_info'],'mobile') !== false) && (strpos($reg_config['register_info'],'plain') !== false)): ?>
			<div  class='nk_cell active'>
				<span><?php echo lang('account_registration'); ?></span>
			</div>
		
			<div class="nk_cell">
				<span><?php echo lang('mobile_phone_registration'); ?></span>
			</div>
	<?php elseif((strpos($reg_config['register_info'],'mobile') !== false) && (strpos($reg_config['register_info'],'plain') === false)): ?>		
			<div class="nk_cell_one active">
				<span><?php echo lang('mobile_phone_registration'); ?></span>
			</div>
		
	<?php elseif((strpos($reg_config['register_info'],'mobile') === false) && (strpos($reg_config['register_info'],'plain') !== false)): ?>		
			<div  class='nk_cell_one active'>
				<span><?php echo lang('account_registration'); ?></span>
			</div>
	<?php endif; ?>
	</div>
	
	<div class="reg-box">
		<!-- <form id="regForm" action="APP_MAIN/login/register" method="post" onsubmit="return check()"> -->
			<?php if(strpos($reg_config['register_info'],'plain') !== false): ?>
			<div id="nk_text1" style="display:block;">
				<div class="reg-cont" style="margin-top:45px;">
					<label class="login-txt" for="username"><span style="padding-right:27px;"><?php echo lang('account_number'); ?></span><input class="" type="text"
						name="username" id="username" placeholder="<?php echo lang('enter_your_account_number'); ?>">
					</label>
				</div>
				<div class="reg-cont">
					<label for="password"><span style="padding-right:27px;"><?php echo lang('password'); ?></span><input
						class="" type="password" name="password" id="password"
						placeholder="<?php echo lang('please_input_password'); ?>" >
					</label>
				</div>
				<div class="reg-cont"><!--  onchange="psd()" -->
					<label for="cfpassword"><span style="padding-right:3px;"><?php echo lang('member_confirm_password'); ?></span><input
						class="" type="password" name="cfpassword" id="cfpassword"
						placeholder="<?php echo lang('confirm_password'); ?>">
					</i>
					</label>
				</div>
				<?php if($code_config['pc'] == 1): ?>
				<div class="nk-cont" >
						<label><span  style="padding-right:14px;color: #333;"><?php echo lang('member_verification_code'); ?></span>
						<input type="text" name="captcha" id="register-captcha"  placeholder="<?php echo lang('please_enter_verification_code'); ?>">
				        <img class="verifyimg" style="width:75px!important;float: right;margin: 4px;" src=" <?php echo __URL('SHOP_MAIN/captcha'); ?>" onclick="this.src='<?php echo __URL('SHOP_MAIN/captcha'); ?>'"  alt="captcha" style="vertical-align: middle; cursor: pointer; height: 35px;" />
				        </label>
				</div>
			   <?php endif; ?>
				<button id="login-button" class="lang-btn" onclick="register_member()"><?php echo lang('register'); ?></button>
				<div class="nk_loginlogin" style="margin-top:15px;"><a href="<?php echo __URL('APP_MAIN/login/index'); ?>"><?php echo lang('existing_account'); ?>,<?php echo lang('logon_immediately'); ?></a></div>  
			</div>
			<?php endif; ?>
		<!-- </form> -->
		<!-- <form action="" method="post"> -->
			<?php if(strpos($reg_config['register_info'],'mobile') !== false): if(strpos($reg_config['register_info'],'plain') === false): ?>
					<div id="nk_text2" >
				<?php else: ?>
					<div id="nk_text2" style="display:none; ">
				<?php endif; ?>
				<div class="nk-cont" style="margin-top:45px;">
						<label><span  style="padding-right:20px;color: #333;"><?php echo lang('cell_phone_number'); ?></span><input type="text"name="mobile" id="mobile" placeholder="<?php echo lang('please_enter_your_cell_phone_number'); ?>" onchange="check_mobile_is_has();">
						</label>
				</div>
				<?php if($code_config['pc'] == 1): ?>
				<div class="nk-cont" >
						<label><span  style="padding-right:14px;color: #333;"><?php echo lang('member_verification_code'); ?></span>
						<input type="text" name="captcha" id="captcha"  placeholder="<?php echo lang('please_enter_verification_code'); ?>">
				        <img class="verifyimg" style="width:75px!important;float: right;margin: 4px;" src=" <?php echo __URL('SHOP_MAIN/captcha'); ?>" onclick="this.src='<?php echo __URL('SHOP_MAIN/captcha'); ?>'"  alt="captcha" style="vertical-align: middle; cursor: pointer; height: 35px;" />
				        </label>
				</div>
			   <?php endif; if($loginConfig['mobile_config']['is_use'] == 1): ?>
				<div class="nk-cont">
						<label><span  style="padding-right:14px;color: #333;"><?php echo lang('dynamic_code'); ?></span>
						    <input type="text" name="motify" placeholder="<?php echo lang('please_enter_the_mobile_phone_dynamic_code'); ?>" id="verify_code" style="width:41%">
							<input type="button" style="padding:4px;width: 73px;background-color: #fff;" id="sendOutCode" value="<?php echo lang('get_dynamic_code'); ?>">
						</label>
				</div>
				<?php endif; ?>
				<div class="reg-cont">
					<label for="password"><span style="padding-right:32px;color: #333;"><?php echo lang('password'); ?></span><input
						class="" type="password" name="password" id="password_mobile"
						placeholder="<?php echo lang('please_enter_your_account_password'); ?>"> 
					</label>
				</div>
				<div class="reg-cont">
					<label for="cfpassword"><span style="padding-right:8px;color: #333;"><?php echo lang('member_confirm_password'); ?></span><input
						class="" type="password" name="cfpassword" id="cfpassword_mobile"
						placeholder="<?php echo lang('please_confirm_the_account_password'); ?>"> 
					</i>
					</label>
				</div>
				<button id="login-button-mobile" class="lang-btn" onclick="register_mobile()"><?php echo lang('register'); ?></button>
				<div class="nk_loginlogin" style="margin-top:15px;"><a href="<?php echo __URL('APP_MAIN/login/index'); ?>"><?php echo lang('existing_account'); ?>,<?php echo lang('logon_immediately'); ?></a></div>  
				</div>
			<?php endif; ?>
			<!-- </form> -->
		<!-- <div id="member" class="news-title pt-60 pb-50">
			<h5 class="t-c f-24">使用以下账号登录</h5>
		</div> -->
		<?php if($loginCount != 0): ?>
		<img src="__TEMP__/<?php echo $style; ?>/public/images/assistant_member.png" style="width: 80% !important;margin-left: 10%;margin-top: 25px;"/>
		<?php endif; ?>
		
<!-- 		<div style=""> -->
		
<!-- 		<?php if($loginConfig['qq_login_config']['is_use'] == 1): ?> -->
<!-- 		<div class="<?php if($loginCount == 1): ?>login_wei<?php elseif($loginCount == 2): ?>login_wei_two<?php elseif($loginCount == 3): ?>login_wei_three<?php endif; ?>"> -->
<!-- 			<a href="APP_MAIN/login/oauthlogin?type=QQLOGIN"> -->
<!-- 			<img src="__TEMP__/<?php echo $style; ?>/public/images/qq.png"/> -->
<!-- 			<span>QQ</span> -->
<!-- 			</a> -->
<!-- 		</div> -->
<!-- 		<?php endif; ?> -->
<!-- 		<?php if($loginConfig['wchat_login_config']['is_use'] == 1): ?> -->
<!-- 		<div class="<?php if($loginCount == 1): ?>login_wei<?php elseif($loginCount == 2): ?>login_wei_two<?php elseif($loginCount == 3): ?>login_wei_three<?php endif; ?>"> -->
<!-- 			<a href="APP_MAIN/login/oauthlogin?type=WCHAT"> -->
<!-- 				<img src="__TEMP__/<?php echo $style; ?>/public/images/weixin.png" /> -->
<!-- 				<span>微信</span> -->
<!-- 			</a> -->
<!-- 		</div> -->
<!-- 		<?php endif; ?> -->
<!-- 		<div class="<?php if($loginCount == 1): ?>login_wei<?php elseif($loginCount == 2): ?>login_wei_two<?php elseif($loginCount == 3): ?>login_wei_three<?php endif; ?>" style="display: none;"> -->
<!-- 			<a href="APP_MAIN/login/wchatOauth"> -->
<!-- 				<img src="__TEMP__/<?php echo $style; ?>/public/images/weibo.png"/> -->
<!-- 				<span >微博</span> -->
<!-- 			</a> -->
<!-- 		</div> -->

<?php if($loginConfig['qq_login_config']['is_use'] != 1): ?>
		<div style="">
			<?php if($loginConfig['qq_login_config']['is_use'] == 1): ?>
			<div class="<?php if($loginCount == 1): ?>login_wei<?php elseif($loginCount == 2): ?>login_wei_two<?php elseif($loginCount == 3): ?>login_wei_three<?php endif; ?>">
				<a href="<?php echo __URL('APP_MAIN/login/oauthlogin?type=QQLOGIN'); ?>">
				<img src="__TEMP__/<?php echo $style; ?>/public/images/qq.png"/>
				<span>QQ</span>
				</a>
			</div>
			<?php endif; if($loginConfig['wchat_login_config']['is_use'] == 1): ?>
			<div class="<?php if($loginCount == 1): ?>login_wei<?php elseif($loginCount == 2): ?>login_wei_two<?php else: ?>login_wei_three<?php endif; ?>" style="width:100%;margin:0;margin-top:15px;">
				<?php if($isWeChatBrowser): ?>
				<a href="<?php echo __URL('APP_MAIN/login/oauthlogin?type=WCHAT'); ?>">
				<?php else: ?>
				<a href="javascript:;" onclick="showBox('请在微信浏览器中进行此操作！','warning');">
				<?php endif; ?>
					<img src="__TEMP__/<?php echo $style; ?>/public/images/weixin.png" style="max-width:48px;"/><br/>
					<span><?php echo lang('wechat'); ?></span>
				</a>
			</div> 
			<?php endif; ?>
			<div class="<?php if($loginCount == 1): ?>login_wei<?php elseif($loginCount == 2): ?>login_wei_two<?php elseif($loginCount == 3): ?>login_wei_three<?php endif; ?>" style="display: none;">
				<a href="<?php echo __URL('APP_MAIN/login/wchatOauth'); ?>">
					<img src="__TEMP__/<?php echo $style; ?>/public/images/weibo.png"/>
					<span ><?php echo lang('microblog'); ?></span>
				</a>
			</div>
		</div>
		<?php elseif($loginConfig['wchat_login_config']['is_use'] != 1): ?>
		<div style="">
			<?php if($loginConfig['qq_login_config']['is_use'] == 1): ?>
			<div class="<?php if($loginCount == 1): ?>login_wei<?php elseif($loginCount == 2): ?>login_wei_two<?php elseif($loginCount == 3): ?>login_wei_three<?php endif; ?>" style="width:100%;margin:0;margin-top:15px;">
				<a href="<?php echo __URL('APP_MAIN/login/oauthlogin?type=QQLOGIN'); ?>" style="dispaly:block;">
				<img src="__TEMP__/<?php echo $style; ?>/public/images/qq.png" style="max-width:48px;"/><br/>
				<span>QQ</span>
				</a>
			</div>
			<?php endif; if($loginConfig['wchat_login_config']['is_use'] == 1): ?>
			<div class="<?php if($loginCount == 1): ?>login_wei<?php elseif($loginCount == 2): ?>login_wei_two<?php else: ?>login_wei_three<?php endif; ?>">
				<?php if($isWeChatBrowser): ?>
				<a href="<?php echo __URL('APP_MAIN/login/oauthlogin?type=WCHAT'); ?>">
				<?php else: ?>
				<a href="javascript:;" onclick="showBox('请在微信浏览器中进行此操作！','warning');">
				<?php endif; ?>
					<img src="__TEMP__/<?php echo $style; ?>/public/images/weixin.png" />
					<span><?php echo lang('wechat'); ?></span>
				</a>
			</div> 
			<?php endif; ?>
			<div class="<?php if($loginCount == 1): ?>login_wei<?php elseif($loginCount == 2): ?>login_wei_two<?php elseif($loginCount == 3): ?>login_wei_three<?php endif; ?>" style="display: none;">
				<a href="<?php echo __URL('APP_MAIN/login/wchatOauth'); ?>">
					<img src="__TEMP__/<?php echo $style; ?>/public/images/weibo.png"/>
					<span ><?php echo lang('microblog'); ?></span>
				</a>
			</div>
		</div>
		<?php else: ?>
		<div style="margin: 0 10%;">
			<?php if($loginConfig['qq_login_config']['is_use'] == 1): ?>
			<div class="<?php if($loginCount == 1): ?>login_wei<?php elseif($loginCount == 2): ?>login_wei_two<?php elseif($loginCount == 3): ?>login_wei_three<?php endif; ?>">
				<a href="<?php echo __URL('APP_MAIN/login/oauthlogin?type=QQLOGIN'); ?>">
				<img src="__TEMP__/<?php echo $style; ?>/public/images/qq.png"/>
				<span>QQ</span>
				</a>
			</div>
			<?php endif; if($loginConfig['wchat_login_config']['is_use'] == 1): ?>
			<div class="<?php if($loginCount == 1): ?>login_wei<?php elseif($loginCount == 2): ?>login_wei_two<?php else: ?>login_wei_three<?php endif; ?>">
				<?php if($isWeChatBrowser): ?>
				<a href="<?php echo __URL('APP_MAIN/login/oauthlogin?type=WCHAT'); ?>">
				<?php else: ?>
				<a href="javascript:;" onclick="showBox('请在微信浏览器中进行此操作！','warning');">
				<?php endif; ?>
					<img src="__TEMP__/<?php echo $style; ?>/public/images/weixin.png" />
					<span><?php echo lang('wechat'); ?></span>
				</a>
			</div> 
			<?php endif; ?>
			<div class="<?php if($loginCount == 1): ?>login_wei<?php elseif($loginCount == 2): ?>login_wei_two<?php elseif($loginCount == 3): ?>login_wei_three<?php endif; ?>" style="display: none;">
				<a href="<?php echo __URL('APP_MAIN/login/wchatOauth'); ?>">
					<img src="__TEMP__/<?php echo $style; ?>/public/images/weibo.png"/>
					<span ><?php echo lang('microblog'); ?></span>
				</a>
			</div>
		</div>
		<?php endif; ?>





		</div>		
		<!-- <div class="nk_loginlogin" style="margin-top:70px;"><a href="APP_MAIN/login/index">已有账号？立即登录</a></div>  -->
	</div>
	<div class="footer" style="min-height: 86px;" id="rigister_copyright">
		<div class="copyright">
			<div class="ft-copyright">
				<a href="http://www.niushop.com.cn" target="_blank" >山西牛酷信息科技有限公司&nbsp;提供技术支持</a>
			</div>
		</div>
	</div>
	<input type="hidden" id="mobile_is_has" value="1">
</div>
</body>
</html>